package com.portal.incurridos.persistence.user;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Alan Dávila
 * e-mail ustargab@gmail.com
 * date 13/11/2013 00:26:47
 */
@Entity
@Table(schema = "userapp", name = "userrole")
public class UserRole {

	/**
	 * User of role.
	 */
	@Id
	private String login;
	/**
	 * Role assigned to login.
	 */
	@Id
	private Integer role;
	/**
	 * @return the login
	 */
	public final String getUser() {
		return login;
	}
	/**
	 * @param userIn the login to set
	 */
	public final void setUser(final String userIn) {
		this.login = userIn;
	}
	/**
	 * @return the role
	 */
	public final Integer getRole() {
		return role;
	}
	/**
	 * @param roleIn the role to set
	 */
	public final void setRole(final Integer roleIn) {
		this.role = roleIn;
	}

}
